package org.bl.chat.dao;

import org.bl.chat.model.dto.MessageDTO;
import org.bl.chat.model.po.MessageDO;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MessageDao extends MongoRepository<MessageDO, String> {
    List<MessageDTO> findByChannelId(String channelId);

}
